/**
 * CarRentMapperExt
 * Copyright © 2015 - 2017 
 * All rights reserved.
 * -----------------------------------
 * 2018-07-12  Created
 */
package com.lzy.cloud.goods.mapper;

import com.lzy.cloud.goods.dtos.CarRentAppDto;
import com.lzy.cloud.goods.dtos.CarRentDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarRentMapperExt extends CarRentMapper {

    List<CarRentDto> selectList(@Param("param") CarRentDto dto,@Param("sortType") Integer sortType);

    /**
     * 根据shopId获取房车数量
     * @param shopId
     * @return
     */
    Integer getCarNumberByShopId(@Param("shopId") Long shopId);

    List<CarRentAppDto> findList(@Param("param") CarRentAppDto dto,@Param("sortType") Integer sortType);

    /**
     * app端根据id查询详情
     * @param id
     * @return
     */
    CarRentAppDto findById(@Param("id") Long id);
}